﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="UCChuDe.ascx.cs" Inherits="Admin_UCControls_UCChuDe" %>

<%--<h2>
    <span style="color: #0099ff">Danh mục chủ đề</span><br /></h2>
<br /><br />--%>
<div style="overflow: scroll; height: 400px">
<asp:DataList ID="dtlChuDe" runat="server" RepeatColumns="2" ShowFooter="False" UseAccessibleHeader="True"
    Width="470px" OnItemCommand="dtlChuDe_ItemCommand">
    <HeaderTemplate>
    </HeaderTemplate>
    <ItemTemplate>
        <asp:Panel ID="pntallproducts" runat="server" Height="164px" Width="200px">
            <table width="100%">
                <tr>
                    <td class="cssborderallproducts" style="height: 140px">
                        <a href='<%# "ChuDe_Update.aspx?IdChuDe="+ DataBinder.Eval(Container.DataItem, "Id").ToString() %>'>
                            <asp:Image ID="Image1" runat="server" BorderColor="#C04000" BorderStyle="Solid" Height="100%"
                                ImageUrl='<% # "~/" + PathImage()+ "/"  + DataBinder.Eval(Container.DataItem, "DuongDan").ToString() %>'
                                Width="100%" />
                        </a>
                    </td>
                </tr>
                <tr>
                    <td style="width: 100%; height: 19px; text-align: center">
                        <asp:Label ID="lblName_Products" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "TenChuDe").ToString() %>'></asp:Label>
                         &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <asp:ImageButton ID="btnXoa" ToolTip="Xóa" CommandName="Xoa" CommandArgument='<%#Bind("Id")%>' runat="server" ImageUrl="~/Admin/Theme/ThemsAdmin/xoa.jpeg" OnClientClick="javascript:return confirm('Có chắc xóa Mẫu thẻ này không?');" />
                     </td>
                </tr>
            </table>
        </asp:Panel>
    </ItemTemplate>
</asp:DataList>&nbsp;
</div>
<br />
<asp:Button ID="btnThem" runat="server" Text="Thêm mới" OnClick="btnThem_Click" />